/**
 * Created by dell on 2016/3/25.
 */
var view3module = angular.module('myApp.view3', ['ngRoute']);

view3module.config(['$routeProvider', function($routeProvider) {
    $routeProvider.when('/view3', {
        templateUrl: 'view3/view3.html',
        controller: 'View3Ctrl'
    });
}]);

view3module.controller('View3Ctrl', ['$scope',function($scope) {
    $scope.haha = {
        name:'haha',
        age:3
    }
}]);